package com.vcc.service.client.vo.baseVo;

import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Data
@Setter
@Getter
public class BaseVo implements Serializable {

    private Long id;

    private Date createDate;

    private Date updateDate;

    public BaseVo() {

    }

    public BaseVo(BaseEntity entity) {
        this.id = entity.getId();
        this.createDate = entity.getCreateDate();
        this.updateDate = entity.getUpdateDate();
    }
}
